<template>
  <div>
    <v-dialog :info="info"  ref="edi"></v-dialog>
    <v-list @edit="edit"></v-list>
  </div>
</template>

<script>
import vList from "./components/List.vue";
import vDialog from "./components/Dialog.vue";

export default {
  components: {
    vList,
    vDialog
  },
  data() {
    return {
      info: {
        isShow: false //控制dialog的显示与隐藏
      }
    };
  },
   methods:{
    add(){
      this.info.isShow=true;

    },
    edit(uid){
      this.info.isShow=true
      this.$refs.edi.oneMember(uid)
    }
  }
};
</script>

<style>
</style>